package com.region.http.client.simple;

import com.region.http.client.common.RequestType;

/**
 * @author liujieyu
 * @date 2024/9/3 17:23
 * @desciption
 */
public class ClientChain {

    public static SimpleRequest get(String url) {
        return new SimpleRequest(url, RequestType.GET);
    }

    public static SimpleRequest post(String url) {
        return new SimpleRequest(url, RequestType.POST);
    }

    public static SimpleRequest head(String url) {
        return new SimpleRequest(url, RequestType.HEAD);
    }

    public static SimpleRequest delete(String url) {
        return new SimpleRequest(url, RequestType.DELETE);
    }

    public static SimpleRequest put(String url) {
        return new SimpleRequest(url, RequestType.PUT);
    }

    public static SimpleRequest options(String url) {
        return new SimpleRequest(url, RequestType.OPTIONS);
    }

    public static SimpleRequest trace(String url) {
        return new SimpleRequest(url, RequestType.TRACE);
    }

}
